//
//  YAObjRecommend.m
//  YoucApi
//
//  Created by Liam on 11/15/12.
//
//

#import "YAObjRecommend.h"

@implementation YAObjRecommend

@synthesize gameName = _gameName;
@synthesize gameImage = _gameImage;

- (id)initWithCoder:(NSCoder *)decoder
{
	self = [super initWithCoder:decoder];
	if (self)
	{
		DECODE(gameName, Object);
		DECODE(gameImage, Object);
	}
	
	return self;
}

- (void)encodeWithCoder:(NSCoder *)encoder
{
	[super encodeWithCoder:encoder];
	
	ENCODE(gameName, Object);
	ENCODE(gameImage, Object);
}

- (void)dealloc
{
	SAFE_RELEASE(_gameName);
	SAFE_RELEASE(_gameImage);
	
	[super dealloc];
}

@end
